program zoj1037;
var
    n, i, a, b:longint;
begin
    read(n);

    for i:=1 to n do
    begin
        read(a, b);
        writeln('Scenario #', i, ':');
        write(a*b, '.');
        if ((a mod 2 <> 0) and (b mod 2 <> 0)) then
            write('41')
        else 
            write('00');
        writeln;
        writeln;
    end;
end.
